package com.oo.inherit_3.familyCar;

/**
 * HackCar--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 14:52
 **/
public class HackCar extends Car {

    private String company;

    public HackCar() {
    }

    public HackCar(String type, String licenNo, String company) {
        super(type, licenNo);
        this.company = company;
    }

    @Override
    protected void start() {
        System.out.println(this.getCompany()+this.getType()+this.getLicenNo()+"出发");
    }

    @Override
    protected void stop() {
        System.out.println("出租车停止");
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }
}
